﻿using Domain.Entities;
using FrameworkCore.Attributes;
using System.ComponentModel.DataAnnotations;

namespace AiBLSmartEdu.Module.SmartEnglish.API.DTOs;

/// <summary>
/// 创建词汇
/// </summary>
[Map(typeof(Vocabulary))]
public class VocabularyCreateInputModel
{
    /// <summary>
    /// 词
    /// </summary>
    [Required(ErrorMessage = "单词是必填项")]
    [StringLength(1000, MinimumLength = 1, ErrorMessage = "单词长度必须在 1 到 1000 个字符之间")]
    public string? Word { get; set; }
}
